/* 
 * Copyright [2018] [Alex/libo(liboms@hotmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.restlet.application;

import org.restlet.Context;
import org.restlet.ext.jaxrs.JaxRsApplication;
import org.restlet.service.StatusService;

import com.hyts.restlet.base.DispatcherApplication;


/** 
 * @title RestApplication.java  
 * @package com.hyts.trestlet.application  
 * @description TODO  
 * @see TODO
 * @author libo/Alex
 * @email liboms@hotmail.com/liboware@163.com  
 * @date 2018年5月13日 
 * @version V1.0 
 */
public class RestApplication extends JaxRsApplication {

	/**  
	 * @constructor：RestApplication  
	 * @param context  
	 */ 
	public RestApplication(Context context) {
		super(context.createChildContext());
		this.add(new DispatcherApplication());
	}

	/* (非 Javadoc)
	 * @return
	 * @see org.restlet.Application#getStatusService()  
	 * @exception
	 */ 
	
	@Override
	public StatusService getStatusService() {
		return super.getStatusService();
	}
	
	
}
